/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tencent.tendon.convert.jsontest.record;

import com.tencent.tendon.convert.jsontest.*;
import java.util.*;

/**
 *
 * @author nbzhang
 */
@SuppressWarnings("unchecked")
public class MapRecord {

	public static enum ColorEnum {

		BLUE, RED, BLACK;
	}

	private Map<String, String> map1;

	private Map<String, String> map2;

	private Map<ColorEnum, String> map3;

	public static void main(String[] args) throws Throwable {
		final MapRecord record = createMapRecord();
		Performance.run(record);
	}

	public static MapRecord createMapRecord() {
		MapRecord record = new MapRecord();
		record.map1 = new LinkedHashMap();
		record.map2 = new LinkedHashMap();
		record.map3 = new LinkedHashMap();

		record.map1.put("10", "100@");
		record.map1.put("12", "120@");
		record.map2.put("aa", "aaa@");
		record.map2.put("bb", "bbb@");
		record.map3.put(ColorEnum.BLUE, "lan__se");
		record.map3.put(ColorEnum.RED, "hong__se");
		return record;
	}

	@Override
	public String toString() {
		return Utility.listingString(this);
	}

	public Map<String, String> getMap1() {
		return map1;
	}

	public void setMap1(Map<String, String> map1) {
		this.map1 = map1;
	}

	public Map<String, String> getMap2() {
		return map2;
	}

	public void setMap2(Map<String, String> map2) {
		this.map2 = map2;
	}

	public Map<ColorEnum, String> getMap3() {
		return map3;
	}

	public void setMap3(Map<ColorEnum, String> map3) {
		this.map3 = map3;
	}
}
